import Layout from "@/pages/Layout";
import Login from "@/pages/Login";
import { createBrowserRouter } from "react-router-dom";
import { AutoRoute } from "@/components/AutoRoute";
import Home from "@/pages/Home";
import Article from "@/pages/Article";
import Pubilsh from "@/pages/Publish";
const router = createBrowserRouter([
    {
        path: '/',
        element: <AutoRoute><Layout></Layout></AutoRoute>,
        children: [
            {
                // path: '/home',
                index: true,
                element: <Home></Home>
            },
            {
                path: '/article',
                element: <Article></Article>
            },
            {
                path: '/publish',
                element: <Pubilsh></Pubilsh>
            },
        ]
    },
    {
        path: '/login',
        element: <Login></Login>
    }
])
export default router 